package com.study.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("course_orientation")
public class CourseOrientation {

  @TableId(type = IdType.AUTO)
  private long id;
  private String orientationName;
  private long parentId;

  //上级方向
  @TableField(exist = false)
  private CourseOrientation parent;

  public CourseOrientation getParent() {
    return parent;
  }

  public void setParent(CourseOrientation parent) {
    this.parent = parent;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getOrientationName() {
    return orientationName;
  }

  public void setOrientationName(String orientationName) {
    this.orientationName = orientationName;
  }


  public long getParentId() {
    return parentId;
  }

  public void setParentId(long parentId) {
    this.parentId = parentId;
  }

  @Override
  public String toString() {
    return "CourseOrientation{" +
            "id=" + id +
            ", orientationName='" + orientationName + '\'' +
            ", parentId=" + parentId +
            ", parent=" + parent +
            '}';
  }
}
